package com.virtualCat.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.virtualCat.util.CustomDateSerializer;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    private String openid;
    private String unionid;
    private String nickName;
    private String imgUrl;
    private String sex;
    private int history;
    private String receiver;
    private String phone;
    private String area;
    private String build_number;
    private int cat_food;
    @JsonSerialize(using = CustomDateSerializer.class)
    private Date obtain;

    public User(){}

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getHistory() {
        return history;
    }

    public void setHistory(int history) {
        this.history = history;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getBuild_number() {
        return build_number;
    }

    public void setBuild_number(String build_number) {
        this.build_number = build_number;
    }

    public Date getObtain() {
        return obtain;
    }

    public void setObtain(Date obtain) {
        this.obtain = obtain;
    }

    public int getCat_food() {
        return cat_food;
    }

    public void setCat_food(int cat_food) {
        this.cat_food = cat_food;
    }

    @Override
    public String toString() {
        return "User{" +
                "openid='" + openid + '\'' +
                ", unionid='" + unionid + '\'' +
                ", nickName='" + nickName + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", sex='" + sex + '\'' +
                ", history=" + history +
                ", receiver='" + receiver + '\'' +
                ", phone='" + phone + '\'' +
                ", area='" + area + '\'' +
                ", build_number='" + build_number + '\'' +
                ", cat_food=" + cat_food +
                ", obtain=" + obtain +
                '}';
    }
}
